﻿import request from '/@/utils/request';
enum Api {
  AddIotprotocol = '/api/iotprotocol/add',
  DeleteIotprotocol = '/api/iotprotocol/delete',
  UpdateIotprotocol = '/api/iotprotocol/update',
  PageIotprotocol = '/api/iotprotocol/page',
  DetailIotprotocol = '/api/iotprotocol/detail',
}

// 增加协议管理
export const addIotprotocol = (params?: any) =>
	request({
		url: Api.AddIotprotocol,
		method: 'post',
		data: params,
	});

// 删除协议管理
export const deleteIotprotocol = (params?: any) => 
	request({
			url: Api.DeleteIotprotocol,
			method: 'post',
			data: params,
		});

// 编辑协议管理
export const updateIotprotocol = (params?: any) => 
	request({
			url: Api.UpdateIotprotocol,
			method: 'post',
			data: params,
		});

// 分页查询协议管理
export const pageIotprotocol = (params?: any) => 
	request({
			url: Api.PageIotprotocol,
			method: 'post',
			data: params,
		});

// 详情协议管理
export const detailIotprotocol = (id: any) => 
	request({
			url: Api.DetailIotprotocol,
			method: 'get',
			data: { id },
		});


